import { ConfigEnv, defineConfig, loadEnv, UserConfig } from "vite";
import viteConf from "../common/vite.config";
import vue from "@vitejs/plugin-vue";
import fileDisplay from "../common/plugins/removeFile";
import { configCompressPlugin, microCustomPlugin } from "./build/vitePlugin";
import path from "path";

// https://vitejs.dev/config/
export default defineConfig(({ mode, command }: ConfigEnv): UserConfig => {
  return {
    ...(viteConf({ mode, command }, __dirname) as UserConfig)
  };
});
